package com.example.uniappspringbootstartweb.service.Imp;

import com.example.uniappspringbootstartweb.entity.Shares;
import com.example.uniappspringbootstartweb.mapper.SharesRepository;
import com.example.uniappspringbootstartweb.service.SharesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author DELL
 */
@Service
public class ShareServiceImpl implements SharesService {
    @Autowired
    private SharesRepository sharesRepository;

    public List<Shares> getSharesByContentid(Long contentId) {
        return sharesRepository.findByContentid(contentId);
    }
    public Shares save(Shares shares) {
        return sharesRepository.save(shares);
    }
}



